﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ERP.Page.Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Phần mềm quản lý CRM</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
    <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager" runat="server" Locale="Client" DisableViewState="true">
            <StartupMask Message="Đang tải..." />
        </ext:ResourceManager>
        <ext:Viewport runat="server" Layout="Border">
            <Content>
                <ext:Panel ID="PanelHeader"
                    runat="server"
                    Header="false"
                    Region="North"
                    Border="false"
                    Layout="FitLayout">
                    <Content>
                        <div id="titlebar">
                            <div id="left">
                                <div class="minor">
                                    <ext:Toolbar ID="Toolbartop" runat="server" Dock="Top" Border="false">
                                        <Items>
                                            <ext:Image ID="Image1" runat="server" ImageUrl="../Img/logo.png" Width="30px" Height="16px"></ext:Image>
                                            <ext:Label ID="Label1" runat="server" Text="PHẦN MỀM QUẢN LÝ CRM" Cls="font-size-lable"></ext:Label>
                                            <ext:ToolbarSeparator />
                                            <ext:Button ID="btnOption" runat="server" Text="Hệ thống" ToolTip="Hệ thống" Icon="Computer" MarginSpec="0 8 0 8">
                                                <Menu>
                                                    <ext:Menu ID="Menu1" runat="server">
                                                        <Items>
                                                            <ext:MenuItem ID="MenuSystems" runat="server" Text="Quản lý hệ thống" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuSystems_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>       
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuBuy" runat="server" Text="Phân hệ mua hàng" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuBuy_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuSell" runat="server" Text="Phân hệ bán hàng" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuSell_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuReceipt" runat="server" Text="Phân hệ công nợ" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuReceipt_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuWareHouse" runat="server" Text="Phân hệ kho" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuWareHouse_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuCustomer" runat="server" Text="Phân hệ khách hàng" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuCustomer_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                        
                                                            <ext:MenuItem ID="MenuCompany" runat="server" Text="Công ty" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuCompany_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuKeToan" runat="server" Text="Kế toán" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuKeToan_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuDichVu" runat="server" Text="Dịch vụ" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuDichVu_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuEmployee" runat="server" Text="Nhân sự" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuEmployee_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuChotSoThuChi" runat="server" Text="Chốt sổ thu chi" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuChotSoThuChi_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuReport" runat="server" Text="Báo cáo quản trị" Icon="ApplicationForm">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuReport_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                        </Items>
                                                    </ext:Menu>
                                                </Menu>
                                            </ext:Button>
                                            <ext:ToolbarSeparator />
                                            <ext:Button ID="btnAbout" runat="server" Text="Trợ giúp" Icon="Help">
                                                <Menu>
                                                    <ext:Menu ID="MenuAbout" runat="server">
                                                        <Items>
                                                            <ext:MenuItem ID="MenuTutorial" runat="server" Text="Hướng dẫn" Icon="Book"></ext:MenuItem>
                                                            <ext:MenuItem ID="MenuItemUpdateSoft" runat="server" Text="Cập nhật phần mềm" Icon="Build"></ext:MenuItem>
                                                            <ext:MenuItem ID="MenuItemAbout" runat="server" Text="Thông tin phần mềm" Icon="Information">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuItemAbout_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                        </Items>
                                                    </ext:Menu>
                                                </Menu>
                                            </ext:Button>
                                            <ext:ToolbarFill />
                                            <%--Icon Cog--%>
                                            <ext:Button ID="btnSystems" runat="server" Text="" Icon="User">
                                                <Menu>
                                                    <ext:Menu ID="MenuSystemsSub" runat="server">
                                                        <Items>
                                                            <ext:MenuItem ID="MenuItemBakupDatabase" runat="server" Text="Bakup CSDL" Icon="Database" Visible="False"/>
                                                            <ext:MenuItem ID="MenuItemUserInfo" runat="server" Text="Thông tin tài khoản" Icon="User">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuItemUserInfo_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuItemChangePage" runat="server" Text="Đổi mật khẩu" Icon="UserEdit">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuItemChangePage_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải" />
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                            <ext:MenuItem ID="MenuItemExit" runat="server" Text="Thoát" Icon="Cross">
                                                                <DirectEvents>
                                                                    <Click OnEvent="MenuItemExit_Click">
                                                                        <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:MenuItem>
                                                        </Items>
                                                    </ext:Menu>
                                                </Menu>
                                            </ext:Button>
                                        </Items>
                                    </ext:Toolbar>
                                </div>
                                <div class="clr"></div>
                            </div>
                        </div>
                    </Content>
                </ext:Panel>
                <ext:Panel 
                    ID="PanelMain" 
                    runat="server" 
                    Border="False"
                    Region="Center"
                    AutoRender ="False"
                    Layout="FitLayout">
                    <Loader Mode="Frame">
                        <LoadMask ShowMask="true" Msg="Đang nạp dữ liệu..." />
                    </Loader>
                </ext:Panel>
            </Content>
        </ext:Viewport>
        <ext:Window ID="WindowChangePass"
            runat="server"
            Width="350"
            Title="Thay đổi mật khẩu"
            Icon="UserEdit"
            Closable="false"
            Region="Center"
            BodyPadding="5"
            Modal="True"
            Hidden="true"
            DefaultButton="btnChangePass"
            Layout="Form">
            <Defaults>
                <ext:Parameter Name="LabelWidth" Value="125" Mode="Raw" />
            </Defaults>
            <Items>
                <ext:TextField
                    ID="txtPassOld"
                    runat="server"
                    FieldLabel="Mật khẩu cũ:"
                    InputType="Password"
                    AnchorHorizontal="100%">
                    <Plugins>
                        <ext:CapsLockDetector ID="CapsLockDetector1" runat="server">
                            <Listeners>
                                <CapsLockOn Handler="#{txtPassOld}.showIndicator({iconCls : '#Error', tip : 'Đang bật Caps Lock'});" />
                                <CapsLockOff Handler="#{txtPassOld}.hideIndicator();" />
                            </Listeners>
                        </ext:CapsLockDetector>
                    </Plugins>
                </ext:TextField>
                <ext:TextField
                    ID="txtNewPass"
                    runat="server"
                    FieldLabel="Mật khẩu mới:"
                    InputType="Password"
                    AnchorHorizontal="100%">
                    <Listeners>
                        <ValidityChange Handler="this.next().validate();" />
                        <Blur Handler="this.next().validate();" />
                    </Listeners>
                    <Plugins>
                        <ext:CapsLockDetector ID="CapsLockDetector2" runat="server">
                            <Listeners>
                                <CapsLockOn Handler="#{txtNewPass}.showIndicator({iconCls : '#Error', tip : 'Đang bật Caps Lock'});" />
                                <CapsLockOff Handler="#{txtNewPass}.hideIndicator();" />
                            </Listeners>
                        </ext:CapsLockDetector>
                    </Plugins>
                </ext:TextField>
                <ext:TextField ID="txtConfirmPasswords"
                    runat="server"
                    Vtype="password"
                    FieldLabel="Nhập lại mật khẩu:"
                    InputType="Password"
                    VtypeText="Nhập lại mật khẩu không chính xác"
                    MsgTarget="Side"
                    AnchorHorizontal="100%">
                    <CustomConfig>
                        <ext:ConfigItem Name="initialPassField" Value="txtNewPass" Mode="Value" />
                    </CustomConfig>
                    <Plugins>
                        <ext:CapsLockDetector ID="CapsLockDetector3" runat="server">
                            <Listeners>
                                <CapsLockOn Handler="#{txtConfirmPasswords}.showIndicator({iconCls : '#Error', tip : 'Đang bật Caps Lock'});" />
                                <CapsLockOff Handler="#{txtConfirmPasswords}.hideIndicator();" />
                            </Listeners>
                        </ext:CapsLockDetector>
                    </Plugins>
                </ext:TextField>
            </Items>
            <Buttons>
                <ext:Button ID="btnChangePass" runat="server" Text="Đổi mật khẩu" Icon="Disk">
                    <DirectEvents>
                        <Click OnEvent="btnChangePass_Click">
                            <EventMask ShowMask="true" Msg="Đang tải" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
            <Buttons>
                <ext:Button ID="btnCancel" runat="server" Text="Thoát" Icon="Cancel">
                    <DirectEvents>
                        <Click OnEvent="btnCancel_Click">
                            <EventMask ShowMask="true" Msg="Đang tải" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
        <ext:Window ID="WindowUserInfo"
            runat="server"
            Width="350"
            Title="Thông tin tài khoản"
            Icon="User"
            Closable="false"
            Region="Center"
            BodyPadding="5"
            Resizable="False"
            Modal="True"
            Hidden="true"
            Layout="Form">
            <Items>
                <ext:FormPanel ID="FormPanel1"
                    runat="server"
                    Height="400"
                    Width="328"
                    Header="False"
                    BodyPadding="5"
                    MonitorResize="true">
                    <Items>
                        <ext:FieldContainer ID="FieldContainer1"
                            runat="server"
                            FieldLabel="Tên đăng nhập"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbUserName" runat="server" Text="Tên tài khoản" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer2"
                            runat="server"
                            FieldLabel="Tên nhân viên"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbFullName" runat="server" Text="Tên nhân viên" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer3"
                            runat="server"
                            FieldLabel="Chức vụ"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbJob" runat="server" Text="Chức vụ" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer4"
                            runat="server"
                            FieldLabel="Nhóm quyền"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbRoles" runat="server" Text="Nhóm quyền" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer5"
                            runat="server"
                            FieldLabel="Số điện thoại"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbCellPhone" runat="server" Text="Điện thoại" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer6"
                            runat="server"
                            FieldLabel="Email"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbEmail" runat="server" Text="Email" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer7"
                            runat="server"
                            FieldLabel="Ngày tạo"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbCreateDate" runat="server" Text="dd/MM/yyyy" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                    </Items>
                </ext:FormPanel>
            </Items>
            <Buttons>
                <ext:Button ID="btnClose" runat="server" Text="Đóng lại" Icon="Cancel">
                    <DirectEvents>
                        <Click OnEvent="btnClose_Click">
                            <EventMask ShowMask="true" Msg="Đang tải" />
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
        <ext:Window ID="WindowSoftInfo"
            runat="server"
            Width="350"
            Title="Thông tin phần mềm"
            Icon="Information"
            Closable="True"
            Region="Center"
            BodyPadding="5"
            Resizable="False"
            Modal="True"
            Hidden="true"
            Layout="Form">
            <Items>
                <ext:FormPanel ID="FormPanel2"
                    runat="server"
                    Height="400"
                    Width="328"
                    Header="False"
                    BodyPadding="5"
                    MonitorResize="true">
                    <Items>
                        <ext:FieldContainer ID="FieldContainer8"
                            runat="server"
                            FieldLabel="Tên khách hàng"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbCustomer" runat="server" Text="Tên khách hàng" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer9"
                            runat="server"
                            FieldLabel="Loại License"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbLicenseTye" runat="server" Text="Loại License" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer10"
                            runat="server"
                            FieldLabel="License"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbLicense" runat="server" Text="License" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer11"
                            runat="server"
                            FieldLabel="Key"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbKey" runat="server" Text="Key" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer12"
                            runat="server"
                            FieldLabel="Ngày đăng ký"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbCreateDateLicense" runat="server" Text="Ngày đăng ký" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer13"
                            runat="server"
                            FieldLabel="Phiên bản"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbVersion" runat="server" Text="Version" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer ID="FieldContainer14"
                            runat="server"
                            FieldLabel="Trạng thái"
                            AnchorHorizontal="100%"
                            LabelWidth="130"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:Label ID="lbStatustActive" runat="server" Text="StatustActive" StyleSpec="color:red"></ext:Label>
                            </Items>
                        </ext:FieldContainer>
                    </Items>
                </ext:FormPanel>
            </Items>
        </ext:Window>
    </form>
</body>
</html>
